home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-12-02 | 1.9 KB | 59 lines |
- (c) 1990 S.Hawtin.
- Permission is granted to copy this file provided
- 1) It is not used for commercial gain
- 2) This notice is included in all copies
- 3) Altered copies are marked as such
-
- No liability is accepted for the contents of the file.
-
- This file describes what the components of the "Makefile" mean. The
- "Makefile" describes how to construct the "CRender" program, it is used by
- a tool called "make" to build the program whenever you edit one of the
- source files.
-
- The "Makefile" is split into individual items, each item describes a
- file, so the item that looks like
-
- CRender: render.o aif.o
- blink with $*.blink
-
- tells "make" that the "CRender" file needs to be remade each time
- "render.o" or "aif.o" is changed, and that you can construct the file with
- the command "blink with $*.blink". The "$*" sequence is automatically
- translated by "make" into "CRender" so the actual command that will be
- used is
-
- blink with CRender.blink
-
- if the "CRender.blink" file has not been created you can create it with
- the command
-
- make $*.blink
-
- issued to the CLI. The next part of the "Makefile" tells "make" about the
- ".o" files
-
- render.o: 3D.h
-
- aif.o: 3D.h menustrip.h
-
- these items just tell "make" to recompile "render.c" each time "3D.h" is
- changed, and "aif.c" each time "3D.h" or "menustrip.h" is changed. We do
- not need to give any more information because "make" knows how to normally
- compile ".c" files into ".o" files.
-
- The final item in the file tells make how to construct ".o" files from
- ".c" files
-
- .c.o:
- NorthC -Ot:$*.s $*.c
- top t:$*.s t:$*.s1
- a68k -g -q -O$*.o t:$*.s1
- delete t:$*.s t:$*.s1
-
- again the "$*" will be replaced by the root filename. The reson for
- adding this is that we want the system to optimise the code that the
- compiler has produced.
-
- For more detail of how "make" works see the documenation in the ":bin"
- directory on the "NorthC" disk.